import 'package:uikit/utils/screen_util/screen_util.dart';

extension SizeExtension on num {
  double get w => ScreenUtil().setWidth(this);

  double get h => ScreenUtil().setHeight(this);

  double get r => ScreenUtil().radius(this);

  double get sp => ScreenUtil().setSp(this);

  ///屏幕宽度的倍数
  double get sw => ScreenUtil().screenWidth * this;

  ///屏幕高度的倍数
  double get sh => ScreenUtil().screenHeight * this;
}
